import pubSub from 'pubsub-js';
<template>
  <div>
    <h3>childTwo</h3>
    <input type="text" v-model="info" />
    <button @click="giveFoot">叔叔给个脚</button>
  </div>
</template>

<script>
import pubSub from "pubsub-js";
export default {
  data() {
    return {
      info: "",
    };
  },
  methods: {
    giveFoot() {
      console.log(this.info);
      //   发布
      pubSub.publish("getMoney", this.info);
    },
  },
};
</script>

<style lang="scss" scoped>
</style>